/*@ File Name : texture.h
  @ Date : 18/11/2011
  @ Author : Guillaume Collombet, Ulysse Mensa, Sylvain Chambe

Fireworks simulation projet
Copyright (C) 2011 Guillaume Collombet, Ulysse Mensa, Sylvain Chambe

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

You can contact us by sending mail at fireworks-simulation-project@googlecode.com*/

#if !defined(_TEXTURE_H)
#define _TEXTURE_H

#ifdef _WIN32
	#include <Windows.h>
#endif

#include <GL/glew.h>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>

#include "dynamicarray.h"

void Texture_SetPixel(SDL_Surface *surface, int x, int y, Uint32 pixel);
Uint32 Texture_GetPixel(SDL_Surface *surface, int x, int y);
unsigned int Texture_LoadTexture(const char * filename,BOOL useMipMap);
SDL_Surface * Texture_FlipSurface(SDL_Surface * surface);
void Texture_Destroy(GLuint textureId);

#endif /*_TEXTURE_H*/
